/*
 * @Date: 2024-08-23 16:56:47
 * @Author: LiSong
 * @LastEditors: ljc
 * @LastEditTime: 2025-07-21 11:23:10
 * @Description: 级联选择
 */
export default {
  type: 'cascader',
  icon: 'cascader-field',
  order: 240,
  enabled: true,
  formItemFlag: true,
  options: {
    // ----- 补充字段
    code: '', // 表单回显，字段编码
    dataField: '', // 数据字段，存储使用
    // ----- 原始字段
    name: '',
    label: '',
    labelAlign: '',
    defaultValue: '',
    placeholder: '',
    size: '',
    labelWidth: null,
    labelHidden: false,
    columnWidth: '200px',
    disabled: false,
    hidden: false,
    clearable: true,
    filterable: false,
    multiple: false,
    checkStrictly: false,  //可选择任意一级选项，默认不开启
    showAllLevels: true,  //显示完整路径
    optionItems: [
      { label: 'select 1', value: 1, children: [{ label: 'child 1', value: 11 }] },
      { label: 'select 2', value: 2 },
      { label: 'select 3', value: 3 },
    ],
    required: false,
    requiredHint: '',
    customRule: '',
    configType: 0,
    customRuleHint: '',
    //-------------------
    customClass: '',  //自定义css类名
    // labelIconClass: null,
    // labelIconPosition: 'rear',
    // labelTooltip: null,
    //-------------------
    onCreated: '',
    onMounted: '',
    onChange: '',
    // onFocus: '',
    onBlur: '',
    onValidate: '',
  },
}